package com.javasm.mingming.common.utils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author javasm
 * @version 0.1
 * @className TimeUtil
 * @descriptioin:
 * @date 2025/1/21 10:24
 * @since jdk11
 */
public class TimeUtil {

    public static String getNow12(){
        LocalDateTime now = LocalDateTime.now();
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("h:mm a");
        return now.format(dateTimeFormatter);
    }
}
